import request from "@/utils/request";

export const loginAPI = async (data) =>
  await request.post("/api/admin/login", data);

export const getUserAPI = async () => await request.get("/api/admin/whoami");

export const updateAdminUser = async (data) =>
  await request.put("/api/admin", data);
